

<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=&#34;auto&#34;>



<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/img/favicon.png">
  <link rel="icon" type="image/png" href="/img/favicon.png">
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="description" content="CodeHope">
  <meta name="author" content="CodeHope">
  <meta name="keywords" content="希望">
  <title>CodeHope</title>

  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" />



<!-- 主题依赖的图标库，不要自行修改 -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_ba1fz6golrf.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_kmeydafke9r.css">


<link  rel="stylesheet" href="/css/main.css" />

<!-- 自定义样式保持在最底部 -->


  <script id="fluid-configs">
    var Fluid = window.Fluid || {};
    var CONFIG = {"hostname":"quancundexiwang.wang","root":"/","version":"1.8.7","typing":{"enable":true,"typeSpeed":70,"cursorChar":"_","loop":false},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"left","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":true,"trickleSpeed":100}},"copy_btn":true,"image_zoom":{"enable":true},"toc":{"enable":true,"headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"onlypost":true},"web_analytics":{"enable":false,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":"Mi65hxq7VAFUDwOLeIGAOgiV-gzGzoHsz","app_key":"hMuhiD4FRqhns4giqLiEH9HG","server_url":null}}};
  </script>
  <script  src="/js/utils.js" ></script>
  <script  src="/js/color-schema.js" ></script>
<meta name="generator" content="Hexo 5.3.0"></head>


<body>
  <header style="height: 100vh;">
    <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand"
       href="/">&nbsp;<strong>CodeHope</strong>&nbsp;</a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/">
                <i class="iconfont icon-home-fill"></i>
                村头
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/archives/">
                <i class="iconfont icon-archive-fill"></i>
                归档
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/categories/">
                <i class="iconfont icon-category-fill"></i>
                分类
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/tags/">
                <i class="iconfont icon-tags-fill"></i>
                标签
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/about/">
                <i class="iconfont icon-user-fill"></i>
                我
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" data-toggle="modal" data-target="#modalSearch">&nbsp;<i
                class="iconfont icon-search"></i>&nbsp;</a>
          </li>
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" href="javascript:">&nbsp;<i
                class="iconfont icon-dark" id="color-toggle-icon"></i>&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div class="banner" id="banner" parallax=true
         style="background: url('http://qiniuyun.quancundexiwang.wang/20210509090921.png') repeat center center;
           background-size: cover;">
      <div class="full-bg-img">
        <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.5)">
          <div class="page-header text-center fade-in-up">
            <span class="h2" id="subtitle" title="就爱吃番茄炒鸡蛋，最好加个鸡蛋！">
              
            </span>

            
          </div>

          
            <div class="scroll-down-bar">
              <i class="iconfont icon-arrowdown"></i>
            </div>
          
        </div>
      </div>
    </div>
  </header>

  <main>
    
      <div class="container nopadding-x-md">
        <div class="py-5" id="board"
          style=margin-top:0>
          
          <div class="container">
            <div class="row">
              <div class="col-12 col-md-10 m-auto">
                


  <div class="row mx-auto index-card" style="position: relative;">
    <div style="background: url('http://qiniuyun.quancundexiwang.wang/20210212225936.png') repeat center center;
      background-size: cover;filter:blur(3px);width:100%;height:100%;position:absolute;filter:blur(30px);opacity:.4;">
    </div>
    
    
      <div class="col-12 col-md-4 m-auto index-img" >
        <a href="/posts/18922/" target="_self">
          <img src="http://qiniuyun.quancundexiwang.wang/20210212225936.png" style="object-fit:contain;" alt="计算机基础-计算机的储存单位">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/posts/18922/">计算机基础-计算机的储存单位</a>
      </h1>

      <p class="index-excerpt">
        <a href="/posts/18922/">
          
          
            
          
          计算机的储存单位最小的储存单位bit(比特)
计算机存储信息的最小单位： 　位 bit (比特)(Binary Digits)：存放一位二进制数，即 0 或 1，是最小的存储单位。

计算机存储容量基本单位是字节byte
8个二进制位(bit)为一个字节(B)，最常用的单位。 (我也常说一个字节占8位)

一个英文字母（不分大小写）占一个字节的空间，一个中文汉字占两个字节的空间。
英文标点占一个字
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2021-02-12 22:57" pubdate>
              2021-02-12
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E8%AE%A1%E7%AE%97%E6%9C%BA%E5%9F%BA%E7%A1%80/">计算机基础</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%9A%84%E5%82%A8%E5%AD%98%E5%8D%95%E4%BD%8D/">计算机的储存单位</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card" style="position: relative;">
    <div style="background: url('http://qiniuyun.quancundexiwang.wang/20210212225936.png') repeat center center;
      background-size: cover;filter:blur(3px);width:100%;height:100%;position:absolute;filter:blur(30px);opacity:.4;">
    </div>
    
    
      <div class="col-12 col-md-4 m-auto index-img" >
        <a href="/posts/46616/" target="_self">
          <img src="http://qiniuyun.quancundexiwang.wang/20210212225936.png" style="object-fit:contain;" alt="计算机中的进制">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/posts/46616/">计算机中的进制</a>
      </h1>

      <p class="index-excerpt">
        <a href="/posts/46616/">
          
          
            
          
          计算机中的进制
根据冯诺依曼体系，计算机中所有的操作都是基于二进制，但是在实际的开发中，我们最常用的进制包括二进制，八进制，十进制，以及十六进制。

什么是进制
在生活中，我们通常都是使用阿拉伯数字计数的，也就是10进制，以10为单位，遇10进一，所以是由0，1，2、3、4、5、6、7、8、9组成的；而在计算机中，计算机是无法识别10进制数的，它只能识别01代码，也就是二进制，由0、1两位数字组成
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2021-02-12 22:35" pubdate>
              2021-02-12
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E8%AE%A1%E7%AE%97%E6%9C%BA%E5%9F%BA%E7%A1%80/">计算机基础</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/%E8%AE%A1%E7%AE%97%E6%9C%BA%E4%B8%AD%E7%9A%84%E8%BF%9B%E5%88%B6/">计算机中的进制</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card" style="position: relative;">
    <div style="background: url('http://qiniuyun.quancundexiwang.wang/20210209215502.png') repeat center center;
      background-size: cover;filter:blur(3px);width:100%;height:100%;position:absolute;filter:blur(30px);opacity:.4;">
    </div>
    
    
      <div class="col-12 col-md-4 m-auto index-img" >
        <a href="/posts/18443/" target="_self">
          <img src="http://qiniuyun.quancundexiwang.wang/20210209215502.png" style="object-fit:contain;" alt="Java中的String类">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/posts/18443/">Java中的String类</a>
      </h1>

      <p class="index-excerpt">
        <a href="/posts/18443/">
          
          
            
          
          Java中的String类从源码分析类属性和方法首先我们回顾一下，常见的几种创建字符串的方式
String s1 = new String("哈哈哈");
String s2 = "呼呼呼呼";
String s3 = new String(); //空字符串

想要了解一个类，最好的办法就是看这个类的实现源代码，来看一下String类的源码：

//String类是final类，也即意味着Str
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2021-02-09 21:49" pubdate>
              2021-02-09
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/Java/">Java</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/Java%E5%9F%BA%E7%A1%80%E5%AD%A6%E4%B9%A0/">Java基础学习</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card" style="position: relative;">
    <div style="background: url('http://qiniuyun.quancundexiwang.wang/20210209111315.png') repeat center center;
      background-size: cover;filter:blur(3px);width:100%;height:100%;position:absolute;filter:blur(30px);opacity:.4;">
    </div>
    
    
      <div class="col-12 col-md-4 m-auto index-img" >
        <a href="/posts/48024/" target="_self">
          <img src="http://qiniuyun.quancundexiwang.wang/20210209111315.png" style="object-fit:contain;" alt="Java中的包装类">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/posts/48024/">Java中的包装类</a>
      </h1>

      <p class="index-excerpt">
        <a href="/posts/48024/">
          
          
            
          
          Java中的包装类包装类基本介绍
Java的数据类型分类两大类，基本数据类型和引用数据类型，其中基本数据类型，不具有属性和方法，无法进行对象层面的交互


而包装类就是为了解决基本数据类型在对象层面能进行数据的交互。  可以让基本数据类型获取像对象一样的特征。Float




基本数据类型
包装类



boolean
Boolean


byte
Byte


short
Short


in
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2021-02-09 11:11" pubdate>
              2021-02-09
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/Java/">Java</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/Java%E5%9F%BA%E7%A1%80%E5%AD%A6%E4%B9%A0/">Java基础学习</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card" style="position: relative;">
    <div style="background: url('http://qiniuyun.quancundexiwang.wang/20210208154427.png') repeat center center;
      background-size: cover;filter:blur(3px);width:100%;height:100%;position:absolute;filter:blur(30px);opacity:.4;">
    </div>
    
    
      <div class="col-12 col-md-4 m-auto index-img" >
        <a href="/posts/21163/" target="_self">
          <img src="http://qiniuyun.quancundexiwang.wang/20210208154427.png" style="object-fit:contain;" alt="Java中对象的多态">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/posts/21163/">Java中对象的多态</a>
      </h1>

      <p class="index-excerpt">
        <a href="/posts/21163/">
          
          
            
          
          对象的多态
多态是同一个行为具有多个不同的表现形态或形式的能力。
 比如一个人，是一个男人，会说话，会走路，也是一个程序员需要敲代码，也是一个父亲需要养孩子，也是一个儿子需要赡养老人


多态在代码中的体现Person.java
package Person;

public class Person &#123;
    public String name;
    public int ag
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2021-02-08 15:39" pubdate>
              2021-02-08
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/Java/">Java</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/Java%E5%9F%BA%E7%A1%80%E5%AD%A6%E4%B9%A0/">Java基础学习</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card" style="position: relative;">
    <div style="background: url('https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1313430092,4065359957&fm=26&gp=0.jpg') repeat center center;
      background-size: cover;filter:blur(3px);width:100%;height:100%;position:absolute;filter:blur(30px);opacity:.4;">
    </div>
    
    
      <div class="col-12 col-md-4 m-auto index-img" >
        <a href="/posts/14029/" target="_self">
          <img src="https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1313430092,4065359957&fm=26&gp=0.jpg" style="object-fit:contain;" alt="Windows安装mysql-8.0.23版本总结">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/posts/14029/">Windows安装mysql-8.0.23版本总结</a>
      </h1>

      <p class="index-excerpt">
        <a href="/posts/14029/">
          
          
            
          
          Windows安装mysql-8.0.23版本总结安装MYSQL 首先去下载！
https://dev.mysql.com/downloads/mysql/

解压到你喜欢的地方
D:\env\mysql-8.0.23-winx64
进入到安装好的bin目录
D:\env\mysql-8.0.23-winx64\bin
编写MySQL的配置文件 my.ini
[mysqld]
# 设置3306端口
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2021-02-05 10:08" pubdate>
              2021-02-05
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E8%AE%A1%E7%AE%97%E6%9C%BA%E5%9F%BA%E7%A1%80/">计算机基础</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/mysql/">mysql</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card" style="position: relative;">
    <div style="background: url('https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3061114379,1415696030&fm=26&gp=0.jpg') repeat center center;
      background-size: cover;filter:blur(3px);width:100%;height:100%;position:absolute;filter:blur(30px);opacity:.4;">
    </div>
    
    
      <div class="col-12 col-md-4 m-auto index-img" >
        <a href="/posts/43531/" target="_self">
          <img src="https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3061114379,1415696030&fm=26&gp=0.jpg" style="object-fit:contain;" alt="Javascript-重学es之es6中装饰器Decorator">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/posts/43531/">Javascript-重学es之es6中装饰器Decorator</a>
      </h1>

      <p class="index-excerpt">
        <a href="/posts/43531/">
          
          
            
          
          装饰器Decorator[TOC]

装饰器（Decorator）是一种与类（class）相关的语法，用来注释或修改类和类方法。许多面向对象的语言都有这项功能，目前有一个提案将其引入了 ECMAScript。

基本介绍
装饰器是一种函数，写成@ + 函数名。它可以放在类和类方法的定义前面。

@frozen class Foo &#123;
  @configurable(false)
  @e
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2021-01-26 08:38" pubdate>
              2021-01-26
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E5%89%8D%E7%AB%AF/">前端</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/JavaScript%E5%9F%BA%E6%9C%AC%E5%8A%9F/">JavaScript基本功</a>
            
              <a href="/tags/es6%EF%BC%8C7%EF%BC%8C8%EF%BC%8C9%EF%BC%8C10/">es6，7，8，9，10..</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card" style="position: relative;">
    <div style="background: url('https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3061114379,1415696030&fm=26&gp=0.jpg') repeat center center;
      background-size: cover;filter:blur(3px);width:100%;height:100%;position:absolute;filter:blur(30px);opacity:.4;">
    </div>
    
    
      <div class="col-12 col-md-4 m-auto index-img" >
        <a href="/posts/62730/" target="_self">
          <img src="https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3061114379,1415696030&fm=26&gp=0.jpg" style="object-fit:contain;" alt="Javascript-重学Es之es6中字符串的扩展">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/posts/62730/">Javascript-重学Es之es6中字符串的扩展</a>
      </h1>

      <p class="index-excerpt">
        <a href="/posts/62730/">
          
          
            
          
          字符串的扩展字符的 Unicode 表示法
ES6 加强了对 Unicode 的支持，允许采用``\uxxxx形式表示一个字符，其中xxxx`表示字符的 Unicode 码点。

"\u0061"
// "a"

但是，这种表示法只限于码点在\u0000~\uFFFF之间的字符。超出这个范围的字符，必须用两个双字节的形式表示。

"\uD842\uDFB7"
// "𠮷"

"\u20BB7"

        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2021-01-22 08:43" pubdate>
              2021-01-22
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E5%89%8D%E7%AB%AF/">前端</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/JavaScript%E5%9F%BA%E6%9C%AC%E5%8A%9F/">JavaScript基本功</a>
            
              <a href="/tags/es6%EF%BC%8C7%EF%BC%8C8%EF%BC%8C9%EF%BC%8C10/">es6，7，8，9，10..</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card" style="position: relative;">
    <div style="background: url('https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3061114379,1415696030&fm=26&gp=0.jpg') repeat center center;
      background-size: cover;filter:blur(3px);width:100%;height:100%;position:absolute;filter:blur(30px);opacity:.4;">
    </div>
    
    
      <div class="col-12 col-md-4 m-auto index-img" >
        <a href="/posts/39166/" target="_self">
          <img src="https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3061114379,1415696030&fm=26&gp=0.jpg" style="object-fit:contain;" alt="Javascript-重学es之es6中Map和WeekMap">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/posts/39166/">Javascript-重学es之es6中Map和WeekMap</a>
      </h1>

      <p class="index-excerpt">
        <a href="/posts/39166/">
          
          
            
          
          新的数据结构Map&amp;WeekMapMap定义基本用法
JavaScript 的对象（Object），本质上是键值对的集合（Hash 结构），但是传统上只能用字符串当作键。这给它的使用带来了很大的限制。

const data = &#123;
    1:1,
&#125;
console.log(data)
Object.keys(data).forEach(item=>&#123;
 
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2021-01-21 08:53" pubdate>
              2021-01-21
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E5%89%8D%E7%AB%AF/">前端</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/JavaScript%E5%9F%BA%E6%9C%AC%E5%8A%9F/">JavaScript基本功</a>
            
              <a href="/tags/es6%EF%BC%8C7%EF%BC%8C8%EF%BC%8C9%EF%BC%8C10/">es6，7，8，9，10..</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card" style="position: relative;">
    <div style="background: url('https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3061114379,1415696030&fm=26&gp=0.jpg') repeat center center;
      background-size: cover;filter:blur(3px);width:100%;height:100%;position:absolute;filter:blur(30px);opacity:.4;">
    </div>
    
    
      <div class="col-12 col-md-4 m-auto index-img" >
        <a href="/posts/56847/" target="_self">
          <img src="https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3061114379,1415696030&fm=26&gp=0.jpg" style="object-fit:contain;" alt="Javascript-重学es之es6中set和weekSet">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/posts/56847/">Javascript-重学es之es6中set和weekSet</a>
      </h1>

      <p class="index-excerpt">
        <a href="/posts/56847/">
          
          
            
          
          新的数据结构 Set&amp; weekSet参考-阮一峰es6
Set
ES6 提供了新的数据结构 Set。它类似于数组，但是成员的值都是唯一的，没有重复的值。

Set本身是一个构造函数，使用new 来生成Set数据结构。
const s = new Set();

[2, 3, 5, 4, 5, 2, 2].forEach(x => s.add(x));

for (let i of s) 
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2021-01-19 08:59" pubdate>
              2021-01-19
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E5%89%8D%E7%AB%AF/">前端</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/JavaScript%E5%9F%BA%E6%9C%AC%E5%8A%9F/">JavaScript基本功</a>
            
              <a href="/tags/es6%EF%BC%8C7%EF%BC%8C8%EF%BC%8C9%EF%BC%8C10/">es6，7，8，9，10..</a>
            
          </div>
        
      </div>
    </article>
  </div>



  <nav aria-label="navigation">
    <span class="pagination" id="pagination">
      <a class="extend prev" rel="prev" href="/page/4/"><i class="iconfont icon-arrowleft"></i></a><a class="page-number" href="/">1</a><span class="space">&hellip;</span><a class="page-number" href="/page/3/">3</a><a class="page-number" href="/page/4/">4</a><span class="page-number current">5</span><a class="page-number" href="/page/6/">6</a><a class="page-number" href="/page/7/">7</a><span class="space">&hellip;</span><a class="page-number" href="/page/11/">11</a><a class="extend next" rel="next" href="/page/6/"><i class="iconfont icon-arrowright"></i></a>
    </span>
  </nav>
  
  <script>
    for (ele of document.getElementById("pagination").getElementsByTagName("a")) {
      ele.href += '#board';
    }
  </script>



              </div>
            </div>
          </div>
        </div>
      </div>
    

    
      <a id="scroll-top-button" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    

    
      <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
    

    
  </main>

  <footer class="text-center mt-5 py-3">
  <div class="footer-content">
    

  </div>
  
  <div class="statistics">
    
    

    
      
        <!-- 不蒜子统计PV -->
        <span id="busuanzi_container_site_pv" style="display: none">
            总访问量 
            <span id="busuanzi_value_site_pv"></span>
             次
          </span>
      
      
        <!-- 不蒜子统计UV -->
        <span id="busuanzi_container_site_uv" style="display: none">
            总访客数 
            <span id="busuanzi_value_site_uv"></span>
             人
          </span>
      
    
  </div>


  
  <!-- 备案信息 -->
  <div class="beian">
    <span>
      <a href="http://beian.miit.gov.cn/" target="_blank" rel="nofollow noopener">
        豫ICP备20009912号-1
      </a>
    </span>
    
  </div>


  
</footer>

<!-- SCRIPTS -->

  <script  src="https://cdn.jsdelivr.net/npm/nprogress@0.2.0/nprogress.min.js" ></script>
  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/nprogress@0.2.0/nprogress.min.css" />

  <script>
    NProgress.configure({"showSpinner":true,"trickleSpeed":100})
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>


<script  src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js" ></script>
<script  src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.min.js" ></script>
<script  src="/js/debouncer.js" ></script>
<script  src="/js/events.js" ></script>
<script  src="/js/plugins.js" ></script>

<!-- Plugins -->


  
    
  



  
    
  









  <script defer src="https://cdn.jsdelivr.net/npm/clipboard@2.0.6/dist/clipboard.min.js" ></script>



  <script defer src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" ></script>




  <script  src="https://cdn.jsdelivr.net/npm/typed.js@2.0.11/lib/typed.min.js" ></script>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var title = document.getElementById('subtitle').title;
      
      typing(title)
      
    })(window, document);
  </script>



  <script  src="/js/local-search.js" ></script>
  <script>
    (function () {
      var path = "http://qiniuyun.quancundexiwang.wang/xmlSearch.xml";
      var inputArea = document.querySelector("#local-search-input");
      inputArea.onclick = function () {
        searchFunc(path, 'local-search-input', 'local-search-result');
        this.onclick = null
      }
    })()
  </script>















<!-- 主题的启动项 保持在最底部 -->
<script  src="/js/boot.js" ></script>



</body>
</html>
